<?php $paginator = $this->data ;?>
<?php $style_th = 'style="background-color:#CCCCCC"' ;?>
<?php $style_td = 'style="border:solid 1px #000"' ;?>
<?php $style_is_code = 'style="color:#FF0000"' ;?>
<?php $style_h2= 'style="width:100%;text-align:center;font-weight:bold;font-size:24px"';?>
<?php $style_description= ' style="width:100%;text-align:center;font-style:italic" ';?>

<div <?php echo $style_h2 ?>>BÁO CÁO HÀNG HÓA SẮP HẾT HẠN SỬ DỤNG</div>
<div <?php echo $style_description ?>>Từ ngày: <?php echo $this->from_time?>. Đến ngày: <?php echo $this->to_time?></div>
<br/>
<table cellpadding="4" cellspacing="0" border='1' style="width:100%; border-collapse:collapse">
	<thead>			
		<tr>
			<th <?php echo $style_th ?>>STT</th>
			<th <?php echo $style_th ?>>Nhóm hàng hóa</th>
			<th <?php echo $style_th ?>>Mã thành phẩm</th>
			<th <?php echo $style_th ?>>Tên thành phẩm</th>
			<th <?php echo $style_th ?>>Số lượng</th>
			<th <?php echo $style_th ?>>Mã vị trí lưu kho</th>
			<th <?php echo $style_th ?>>Ngày sản xuất</th>
			<th <?php echo $style_th ?>>Ngày hết hạn</th>
		</tr>
	</thead>
	<tbody>
		<?php if($this->paginator){ $no=1;foreach ($this->paginator as $row){?>
		<tr>
			<td align="center"><?php echo $no++ ;?></td>
			<td><?php echo $row->m_Array['product_group_name']?></td>
			<td><?php echo $row->m_Array['product_code']?></td>
			<td><?php echo $row->m_Array['product_name']?></td>
			<td align="right"><?php echo $row->inventory_quantity ?></td>
			<td><?php echo $row->inventory_location_code;?></td>
			<td align="center"><?php echo date('d.m.Y', $row->inventory_product_time) ?></td>
			<td align="center"><?php echo date('d.m.Y', $row->inventory_expire_time) ?></td>
		</tr>
		<?php }}?>
	</tbody>
</table>